import { request } from './request'
 
// 登录
export function loginService(data) {
  return request({
    url: `/mpi/login`,
    method: 'post',
    data
  })
}

// 退出登录
export function logoutService(data) {
  return request({
    url: `/mpi/logout`,
    method: 'post',
    data
  })
}

// 注册
export function registerService(data) {
  return request({
    url: `/mpi/register`,
    method: 'post',
    data
  })
}

// 用户头像
export function getImageService(data) {
  return request({
    url: `/mpi/usr/get_image`,
    method: 'get',
    data
  })
}

// 用户头像
export function updateMsgService(data) {
  return request({
    url: `/mpi/usr/set_mark`,
    method: 'post',
    data
  })
}

// 用户头像
export function getUserService(data) {
  return request({
    url: `/mpi/usr/get_info`,
    method: 'get',
    data
  })
}

export function getUserGatherService(data) {
  return request({
    url: `/mpi/usr/get_gather`,
    method: 'get',
    data
  })
}

export function userCollectService(data) {
  return request({
    url: `/mpi/usr/collect`,
    method: 'post',
    data
  })
}

export function getUserCollectService(data) {
  return request({
    url: `/mpi/usr/get_collect`,
    method: 'get',
    data
  })
}

export function pullNoticeService(data) {
  return request({
    url: `/mpi/usr/pull_notice`,
    method: 'get',
    data
  })
}

export function readNoticeService(data) {
  return request({
    url: `/mpi/usr/read_notice`,
    method: 'get',
    data
  })
}

export function feedbackService(data) {
  return request({
    url: `/mpi/feedback`,
    method: 'post',
    data
  })
}